//
//  GWADViewController.m
//  网易新闻
//
//  Created by qianfeng on 16/2/29.
//  Copyright (c) 2016年 高炜. All rights reserved.
//

#import "GWADViewController.h"

@interface GWADViewController ()

@end

@implementation GWADViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    
    UIImageView *bg =[[UIImageView alloc]initWithImage:[UIImage imageNamed:@"Default"]];
    bg.frame =self.view.bounds;
    [self.view addSubview:bg];
    
    UIImageView *ad =[[UIImageView alloc]init];
    ad.image =[UIImage imageNamed:@"3"];
    ad.width =GWScreenW*0.7;
    ad.height =GWScreenH*0.6;
    ad.centerX =GWScreenW*0.5;
    ad.y= 60;
    [self.view addSubview:ad];
    
    dispatch_after(dispatch_time(DISPATCH_TIME_NOW, (int64_t)(2.0 * NSEC_PER_SEC)), dispatch_get_main_queue(), ^{
       UIStoryboard *storyBoard = [UIStoryboard storyboardWithName:@"Main" bundle:nil];
        
        [UIApplication sharedApplication].keyWindow.rootViewController =[storyBoard instantiateViewControllerWithIdentifier:@"Main"];
    });
    // Do any additional setup after loading the view.
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
